package rest.home.entity;

/**
 * @author xb
 * @date 2022-05-06 14:19
 * describe
 */

public class NursingPayMent {
    private Integer nursingId;  //护理费用编号
    private Integer nursingGrade; //护理级别
    private Integer nursingPay; //护理费用
    private Integer olderId; //老人编号

    @Override
    public String toString() {
        String nursingGrades=null;
        switch (this.nursingGrade){
            case 0:
                nursingGrades="高级护理";
                break;
            case 1:
                nursingGrades="中级护理";
                break;
            case 2:
                nursingGrades="普通护理";
                break;
        }
        return
                " 护理费用编号:" + nursingId +","+
                " 护理级别:" + nursingGrades +","+
                " 护理费用:" + nursingPay +","+
                " 老人编号:" + olderId +";";
    }

    public NursingPayMent() {
    }

    public NursingPayMent(Integer nursingId, Integer nursingGrade, Integer nursingPay, Integer olderId) {
        this.nursingId = nursingId;
        this.nursingGrade = nursingGrade;
        this.nursingPay = nursingPay;
        this.olderId = olderId;
    }

    public Integer getNursingId() {
        return nursingId;
    }

    public void setNursingId(Integer nursingId) {
        this.nursingId = nursingId;
    }

    public Integer getNursingGrade() {
        return nursingGrade;
    }

    public void setNursingGrade(Integer nursingGrade) {
        this.nursingGrade = nursingGrade;
    }

    public Integer getNursingPay() {
        return nursingPay;
    }

    public void setNursingPay(Integer nursingPay) {
        this.nursingPay = nursingPay;
    }

    public Integer getOlderId() {
        return olderId;
    }

    public void setOlderId(Integer olderId) {
        this.olderId = olderId;
    }
}
